package com.shine.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.shine.security.Principal;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author huihui
 * @date 2025/10/9 11:32
 * @description User
 */
@Data
public class User extends BaseEntity {

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 头像
     */
    @TableField(value = "head_image")
    private String headImage;

    /**
     * 枚举 用户状态：0-禁用|1-正常
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 最后一次登录时间
     */
    @TableField(value = "last_login_time")
    private LocalDateTime lastLoginTime;

}
